/**
 * @Author: 耿立强
 * @Date: 2019/6/20
 * @Last Modified by:   耿立强
 * @Last Modified time: 2019-06-20 15:45:00
 */
 import axios from '@/api/fetch';
 import SERVER from '@/api/server';

 // 厂端批量活动查询列表
 export const searchListRecord = params => axios.post(`${SERVER.DMSCLOUD_ACTIVITY}/ttRpMa/searchListRecord`, params);
 //活动车辆列表
 export const showTtRpMaVin = params => axios.get(`${SERVER.DMSCLOUD_ACTIVITY}/ttRpMa/showTtRpMaVin`, { params });

 //列表导出
 export const exportSearchListRecord = params => {
   return axios({
     url: `${SERVER.DMSCLOUD_ACTIVITY}/ttRpMa/exportSearchListRecord`,
     method: 'get',
     params: params,
     responseType: 'blob'
   });
 };
 //下载中心导出
 export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);

 //车辆导出
 export const exportShowTtRpMaVin = params => {
   return axios({
     url: `${SERVER.DMSCLOUD_ACTIVITY}/ttRpMa/exportShowTtRpMaVin`,
     method: 'get',
     params: params,
     responseType: 'blob'
   });
 };
 //vin导出
 export const exportByMaId = params => {
   return axios({
     url: `${SERVER.DMSCLOUD_ACTIVITY}/ttRpMa/exportByMaId`,
     method: 'get',
     params: params,
     responseType: 'blob'
   });
 };

 //返件更改
 export const isReturnChange = params => axios.get(`${SERVER.DMSCLOUD_ACTIVITY}/ttRpMa/isReturnChange`, { params });

 //结算更改
 export const isClaimChange = params => axios.get(`${SERVER.DMSCLOUD_ACTIVITY}/ttRpMa/isClaimChange`, { params });
